'use strict';

angular.module('hanxinBroker').controller('UserHomeCtrl', function ( $state, $http) {
  var vm = this;
  vm.invitedPerson = 0;
  $http.get('broker/api/userHome').success(function (data) {
    vm.invitedPerson = data.count;
  });
  vm.modifyPwd = function modifyPwd() {
    $state.go("modifyPwd");
  };
  vm.myInvitationCode = function myInvitationCode() {
    $state.go("myInvitationCode");
  }
});
